package by.semerikov.loger;

import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.LogManager;
import java.util.logging.Logger;


 public class Log {
//	 
//	 static{
//		 try{
//         LogManager.getLogManager().readConfiguration(Log.class.getResourceAsStream("/logging.properties"));
//	     } catch (IOException e) {
//	         System.err.println("Could not setup logger configuration: " + e.toString());
//	     }
//	 }
//	
//	public static Logger getLogger(String name)
//	{
//		Logger log=Logger.getLogger(name);
//		
//		try {
////			FileHandler fh = new FileHandler("E:\\Eclipse\\workspace\\WebTransportSystemMaven\\src\\main\\java\\by\\semerikov\\loger\\LogApp");
////			log.addHandler(fh);
//			return log;
//		} catch (SecurityException e) {
//			log.log(Level.SEVERE,
//					"Can't create log file. Security Exception", 
//					e);
//		}
////		catch (IOException e) {
////			log.log(Level.SEVERE,
////					"Can't create log file. Input Output Exception ",
////					e);
////		}
//		return null;
//	}
	
}
